FROM python:3.12

LABEL authors="haredot"

WORKDIR /app

COPY . /app/

RUN pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/

RUN python3 manage.py makemigrations && python3 manage.py migrate

ENTRYPOINT  ["python3",  "manage.py" ,  "runserver", "0.0.0.0:8000"]